package com.hly.baseactivity

import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel

class MainViewModel : ViewModel() {
    val data: MutableLiveData<ButtonDataBean> = MutableLiveData()
    // 模拟接口请求加载数据
    fun loadData() {
        data.value = ButtonDataBean("Hello, ViewModel!", android.R.color.holo_blue_light, 18f, android.R.color.holo_red_light)
    }
}